package com.example.wanbaqian.adapter;

import android.content.Context;

import com.example.wanbaqian.R;
import com.example.wanbaqian.bean.WithDrawalInfo;
import com.example.wanbaqian.utils.TimeUtils;
import com.zhy.adapter.recyclerview.base.ViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/4/6 0006.
 * 黑名单适配器
 */

public class FindWithDrawalAdapter extends LoadMoreAdapter<WithDrawalInfo> {

    public FindWithDrawalAdapter(Context context, int layoutId, List<WithDrawalInfo> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, WithDrawalInfo item, int position) {
        holder.setText(R.id.tv_name,item.getWithdraw_no());
        holder.setText(R.id.tv_type, TimeUtils.getCurrentTimeByFormat(Long.parseLong(item.getCreate_time()))+item.getPay_status()+" 手续费"+item.getWithdraw_fee());
        holder.setText(R.id.tv_money,item.getWithdraw_money());
    }
}
